package com.itheima.mapper;

import com.itheima.common.entity.PageResult;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.domain.Pageable;

import java.util.List;

@Mapper
public interface OrderMapper {

    List<Order> findByCode(String queryString, int offset, int pageSize);

    long countByCode(String queryString);

    List<Order> findByName(String queryString, int offset, int pageSize);

    long countByName(String queryString);

    List<Order> findPage(int offset, int pageSize);

    long count();

    boolean update(Order order);

    Order findById(Integer id);
}
